package com.yao.club.service;

import com.yao.club.entity.dto.SysAddressCity;
import com.yao.club.entity.dto.SysAddressDistrict;
import com.yao.club.entity.dto.SysAddressProvince;
import com.yao.club.entity.dto.UserAddress;
import com.yao.club.entity.request.AddUserAddressRequestEntity;
import com.yao.club.entity.request.UpdateUserAddressRequestEntity;
import com.yao.club.entity.result.ResponseEntity;

import java.util.List;

public interface UserAddressService {
    ResponseEntity<List<UserAddress>> getUserAddresses(String username);
    ResponseEntity<List<SysAddressProvince>> getAllProvinces();
    ResponseEntity<List<SysAddressCity>> getCitiesByProvinceId(String provinceId);
    ResponseEntity<List<SysAddressDistrict>> getDistrictsByCityId(String cityId);
    ResponseEntity<Boolean> addUserAddress(AddUserAddressRequestEntity entity, String username);
    ResponseEntity<Boolean> updateUserAddress(UpdateUserAddressRequestEntity request, String username);
    ResponseEntity<Boolean> deleteUserAddress(Long addressId, String username);
}